#ifndef CHATTEXTEDIT_H
#define CHATTEXTEDIT_H

#include <QTextEdit>
#include <QObject>

class ChatTextEdit : public QTextEdit
{
    Q_OBJECT

public:
    ChatTextEdit(QWidget *parent = 0) : QTextEdit(parent) { shiftPressed = false; }
    ~ChatTextEdit() {}

protected:
    virtual void keyPressEvent(QKeyEvent *e);
    virtual void keyReleaseEvent(QKeyEvent *e);

signals:
    void returnWithoutShiftPressed();

private:
    bool shiftPressed;
};

#endif // CHATTEXTEDIT_H
